let app = getApp()
Component({
    properties: {
 
      },
      data:{
        item:{
          class_ids: 0,
          data_type: "",
          id: "images-list-auto",
          num: 20,
          order: "id",
          showtitle: !1,
          sort: "desc",
          css: {
              "images-list-auto": "background-color:rgba(255, 255, 255, 1.0);background:rgba(255, 255, 255, 1.0);",
              "images-list-auto .group_item": "border-top:1px solid rgba(241, 241, 241, 1.0);border-right:1px solid rgba(241, 241, 241, 1.0);border-bottom:1px solid rgba(241, 241, 241, 1.0);border-left:1px solid rgba(241, 241, 241, 1.0);background-color:rgba(255, 255, 255, 1.0);background:rgba(255, 255, 255, 1.0);border-radius:4px 4px 4px 4px;box-shadow:0px 2px 12px rgba(0, 0, 0,0.10);padding: 0px;",
              "images-list-auto .group_title": "display:none;",
              "images-list-auto .item_image": "height:150px;"
          },
          animation: {},
          list: []
        }
      },
    lifetimes: {
        attached: function () {
          var that=this
          wx.request({
            url: app.globalData.siteroot,
            data: {
              do:'List_Data',
              type:wx.getStorageSync('linkinfo').type,
              num:20,
              class_ids:wx.getStorageSync('linkinfo').id,
              sort:'desc',
              order:'id',
              ids:'',
              data_type:'auto',
              page:1,
              user_id:wx.getStorageSync('user_id'),
            },
            success: function(res) {
              var item=that.data.item
               item.list=res.data.info
               that.setData({
                item:item
               })
            }
          })
       }
      },
    methods: {
    }
});
